﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dreamz
{
    public class Rum6
    {
        static public void Apply()
        {
           //Removes the ball at gamestart.
            GameEngine.S.World[4, 2].Items.Remove("ball");
        }
        static public void TakeBall()
        {
           //Adds a new eventhandler, when using the ball, upon taking the ball.
            GameEngine.S.Player.Inventory["ball"].OnUse += new EventHandler(UseBall);
            GameEngine.S.World[4, 2].Items["hole"].Description = "You stare at the hole filled with an unidentified liquid once again.\n";
        }
        static public void UseBall()
        {
            //This method is used to insert a ball into a doorway, works together with UseTriangle, UseCube to open the door.
            Rum9.InsertShape("ball");
            GameEngine.S.Player.Inventory.Remove("ball");
        }
    }
}
